package com.bwhx.eruler.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bwhx.eruler.bean.ChangeVersion;
import com.bwhx.eruler.bean.InputRuler;
import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.bean.Ruler;
import com.bwhx.eruler.dao.InputRulerDao;
import com.bwhx.eruler.dao.RulerDao;
import com.bwhx.eruler.service.InputRulerService;

/**
 * @Description:
 */
@Service
public class InputRulerServiceImpl implements InputRulerService {
	@Autowired 
	InputRulerDao irDao;
	
	@Autowired 
	RulerDao rulerDao;
	
	

	@Transactional
	@Override
	public void update(InputRuler ir, List<String> listCodes, Long time) {
		irDao.update(ir);
		rulerDao.update(listCodes,time);

		
	}
	

	@Override
	public List<InputRuler> list(Page p) {
		return irDao.list(p);
	}

	@Override
	public Integer count(InputRuler ir) {
		return irDao.count(ir);
	}


	@Override
	public InputRuler get(String iRId) {
		return irDao.get(iRId);
	}


	@Override
	public void insert(InputRuler inputRuler) {
		irDao.insert(inputRuler);
		
	}


	@Override
	public void del(String iRId) {
		irDao.delete(iRId);	
	}


	

	
	
	

}
